package 设计模式.respon;

public class Client {
    public static void main(String[] args) {
        PurchaseRequst purchaseRequst = new PurchaseRequst(1, 20000f, 1);

        DepartmentApprover departmentApprover = new DepartmentApprover("赵主任");
        CollegeApprover collegeApprover = new CollegeApprover("李院长");
        ViceSchoolMasterApprover viceSchoolMasterApprover = new ViceSchoolMasterApprover("张副校长");
        SchoolMasterApprover schoolMasterApprover = new SchoolMasterApprover("王校长");

        departmentApprover.setApprover(collegeApprover);
        collegeApprover.setApprover(viceSchoolMasterApprover);
        viceSchoolMasterApprover.setApprover(schoolMasterApprover);

        departmentApprover.processRequest(purchaseRequst);
    }
}
